package com.biz.primus.ms.promotion.trans;

import com.biz.primus.model.promotion.vo.ActivityItemVo;
import com.biz.primus.ms.promotion.dao.ro.ActivityItemRo;
import java.util.function.Function;

/**
 * @author david-liu
 */
public class ActivityItemRo2ActivityItemVoMapper implements Function<ActivityItemRo, ActivityItemVo> {
    @Override
    public ActivityItemVo apply(ActivityItemRo activityItemRo) {
        ActivityItemVo activityItemVo = new ActivityItemVo();
        activityItemVo.setId(activityItemRo.getId());
        activityItemVo.setName(activityItemRo.getName());
        activityItemVo.setLogo(activityItemRo.getLogo());
        activityItemVo.setUrl(activityItemRo.getUrl());
        activityItemVo.setDescription(activityItemRo.getDescription());
        return activityItemVo;
    }
}
